<template>
	<view>
		<my-login v-if="!token"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import {
		tabbar_badge
	} from '../../mixins/index.js';
	// 根据token做判断
	import {
		mapState
	} from 'vuex'
	export default {
		mixins: [tabbar_badge],
		computed: {
			// 引入token
			...mapState('m_user', ['token'])
		},
		data() {
			return {};
		}
	};
</script>

<style lang="scss"></style>
